#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_clicked()
{
    if(ui->lineEdit->text()=="123")
    {
        Form *f1=new Form();
        f1->show();
        this->hide();
    }
}

void Widget::on_pushButton_2_clicked()
{
    this->close();
}
